# create a graph from an "exp.data" file
# example for plotting data from a neural network learning
#
# syntaxe:  gnuplot plotNN.gp
#
# no_iteration learning_error generalization_error
# an output file "exp.eps" is created

set xlabel 'iteration (n)'
set ylabel 'oracle and actual outputs ; average errors'
set title 'Echo State Network results'
set key right top
set key box 
set datafile separator "\t" 

set yrange[*:*]
set xrange[*:*]

plot 'exp.dat' using 1:($2) title "oracle output" with lines, 'exp.dat' using 1:($3) title "actual output" with lines, 'exp.dat' using 1:($4) title "average error" with lines

# Decommenter ce qui suit pour generer un fichier EPS en sortie

#set term post eps "Times-Roman" 8
#set size 5./10., 3./7.
#set output 'exp.eps'
#replot
#set term X11

# OU ALORS: 
set term postscript eps enhanced monochrome
set output 'exp.eps'
replot

pause -1 


